package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyDetailBean;
import com.project.bean.BuyOrderBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IBuyOrderMapper extends BaseMapper<BuyOrderBean> {
    /**
     * 通过购买订单id查找订单明细
     * @param orderId  订单id
     * @return
     */
    List<BuyDetailBean> findById(@Param("orderId") Integer orderId);
}
